# CONFIG += qt console debug_and_release
# CONFIG = x86 qt debug_and_release
TEMPLATE = app
LANGUAGE = C++
CONFIG -= x86_64
CONFIG += x86 precompile_header
QT += opengl
DEFINES += USE_QT4

# Use Precompiled headers (PCH)
PRECOMPILED_HEADER = Stable.h

FORMS = main.ui

HEADERS = Stable.h \
    AdapterWidget.h \
    MainWindow.h \
    MainViewer.h \
    HomeGrid.h \
    SceneManager.h \
    SceneManagerModel.h \
    SelectionManager.h \
    SelectionBoxManager.h \
    PickHandler.h \
    NodeData.h \
    SelectionBox.h \
    Snapping.h \
    SelectionSet.h \
    Document.h \
    CameraManipulator.h

SOURCES = main.cpp \
    AdapterWidget.cpp \
    MainWindow.cpp \
    MainViewer.cpp \
    HomeGrid.cpp \
    SceneManager.cpp \
    SceneManagerModel.cpp \
    SelectionManager.cpp \
    SelectionBoxManager.cpp \
    PickHandler.cpp \
    SelectionBox.cpp \
    Snapping.cpp \
    SelectionSet.cpp \
    Document.cpp \
    CameraManipulator.cpp

INCLUDEPATH += $$(OSG_INCLUDE_PATH)

win32 { 
    CONFIG(debug, debug|release):LIBS += -L$$(OSG_LIB_PATH) \
        -losgd \
        -losgDBd \
        -losgGAd \
        -losgViewerd \
        -losgUtild \
        -losgFXd \
        -losgManipulatord
    else:LIBS += -L$$(OSG_LIB_PATH) \
        -losg \
        -losgDB \
        -losgGA \
        -losgViewer \
        -losgUtil \
        -losgFX \
        -losgManipulator
}
unix:LIBS += -L/usr/local/lib \
    -L$$(OSG_LIB_PATH) \
    -lOpenThreads \
    -losg \
    -losgDB \
    -losgGA \
    -losgViewer \
    -losgUtil \
    -losgFX \
    -losgManipulator
